data:
	mkdir --parents data
	
	# Copy list of documentation repositories
	cp ${DOKK-DATA}/documentation/documentation.json .
	cp ${DOKK-DATA}/documentation/tags.json .
	
	# Convert JSON to JSON-LD
	jq --argfile graph documentation.json \
	   '."@graph" = $$graph' \
	   ../../vocab.json \
	   > data/documentation.jsonld
	
	jq --argfile graph tags.json \
	   '."@graph" = $$graph' \
	   ../../vocab.json \
	   > data/tags.jsonld

clean:
	rm -rf data/ *.nt *.hdt *.hdt.index.v*

.PHONY: clean
